package com.ccrfid.rmc6.repository.poi;

import com.ccrfid.rmc6.entity.poi.PoiCameraEntity;
import org.springframework.data.repository.Repository;

import java.util.List;

public interface PoiCameraRepository extends Repository<PoiCameraEntity, Long> {
    //
    void deleteByCameraId(Long cameraId);
    void deleteByCameraIdIn(List<Long> idList);
    //
    PoiCameraEntity getByCameraId(Long cameraId);
    //
    PoiCameraEntity save(PoiCameraEntity entity);
    //
    Boolean existsByCameraId(Long cameraId);
}
